/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-04-26
 * Time: 15:51
 */
public class MultipleCatchTest {
    public static void main(String[] args) {
        int[] a = new int[3];
        int b = 0;
        try{
            for (int i = 0; i <= a.length ; i++) {
                a[i] = i;
            }
            int temp = a[1]/b;
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("异常信息：数组下标越界");
        }catch (ArithmeticException e){
            System.out.println("异常信息：除数不能为0");
        }
        System.out.println("程序结束");
    }
}
